package com.weme.common.viewmodel

import account_server.v1.Account.GetGoodsListRequest
import com.weme.common.base.BaseViewModel
import com.weme.common.network.NetWorkUrl
import dev.kratos.api.user_server.v1.GetGiftListRequest
import dev.kratos.api.user_server.v1.SendGiftRequest

class GiftViewMode:BaseViewModel() {
    fun getGiftListApi(req: GetGiftListRequest) {
        val reqByte = req.toByteArray()
        sendNetworkRequest(reqByte, NetWorkUrl.GetGiftList)
    }
    fun sendGiftListApi(req: SendGiftRequest) {
        val reqByte = req.toByteArray()
        sendNetworkRequest(reqByte, NetWorkUrl.SendGift)
    }

    fun getGoodsList(req: GetGoodsListRequest){
        val reqByte = req.toByteArray()
        sendAccountworkRequest(reqByte, NetWorkUrl.GetGoodsList)
    }


}